package com.ruoyi.project.system.domain;

import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;

@Data
public class SiyuBlacklist extends BaseEntity {

    private Integer id;

    private String name;

    private String cardNo;

    private String tel;

    private String location;

    private String labels;

    public SiyuBlacklist() {
    }

    public SiyuBlacklist(ExternalBlackList ebl) {
        this.setName(ebl.getName());
        this.setCardNo(ebl.getCardNo());
        this.setTel(ebl.getTel());
        this.setLocation(ebl.getLocation());
        this.setRemark(ebl.getRemark());
        this.setLabels("[" + (StringUtils.isEmpty(ebl.getInfo()) ? "" : ("\"" + ebl.getInfo() + "\"")) + "]");
        this.setCreateBy("YQ");
    }
}
